package com.bringway.p2p.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bringway.p2p.dao.P2PHBDao;
import com.bringway.p2p.service.P2PHBService;

import net.sf.json.JSONObject;
 
/*
 * @author fan
 * @className P2PHBServiceImpl
 * @description 红包明细业务实现类
 * @date 2016年1月5日上午10:19:09
 */
@Service
@Transactional
public class P2PHBServiceImpl implements P2PHBService {
	@Autowired
	private P2PHBDao p2pHBDao;
	/*
	 * (non-Javadoc)
	 * 
	 * @see com.bringway.p2p.service.P2PHBService#hbDetailsQuery(net.sf.json.
	 * JSONObject)
	 */
	@Override
	public List hbDetailsQuery(JSONObject parms) {
		return p2pHBDao.queryHBDetails(parms);
	}
	
	
	
	/*
	 * (non-Javadoc)
	 * @see com.bringway.p2p.service.P2PHBService#getGltzrxx(net.sf.json.JSONObject)
	 */
	@Override
	public List getGltzrxx(JSONObject parms) {
		return p2pHBDao.queryHBgltzrxx(parms);
	}

	@Override
	public int getPageCount(JSONObject parms) {
		return p2pHBDao.queryHBDetailsCount(parms);
	}
}
